package cn.snmp.mutual.common;

import cn.snmp.mutual.common.snmp.SnmpNioTarget;

/**
 * @author dengkn
 */
public class SnmpCacheInstance {
	private static SnmpCacheInstance snmpCacheInstance = new SnmpCacheInstance();
	private SnmpDispatcher snmp;
	private SnmpNioTarget snmpTarget;
	private SnmpCacheInstance() {
    	
    }
	
    public synchronized static SnmpCacheInstance getSnmpCacheInstance() {
    	if(snmpCacheInstance == null ) {
    		return new SnmpCacheInstance();
    	}
		return snmpCacheInstance;
    }
	
    public SnmpDispatcher getSnmp() {
		return snmp;
	}

	public void setSnmp(SnmpDispatcher snmp) {
		this.snmp = snmp;
	}

	public SnmpNioTarget getSnmpTarget() {
		return snmpTarget;
	}

	public void setSnmpTarget(SnmpNioTarget snmpTarget) {
		this.snmpTarget = snmpTarget;
	}

	public void clean() {
		
	}

	public void close() {
		
	}
}
